package org.vincen.helloworld.quartz;

import org.quartz.JobDetail;
import org.quartz.Scheduler;
import org.quartz.SchedulerException;
import org.quartz.Trigger;
import org.quartz.impl.StdSchedulerFactory;
import static org.quartz.JobBuilder.newJob;
import static org.quartz.TriggerBuilder.newTrigger;

public class QuartzTest1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// Grab the Scheduler instance from the Factory
		try {
			Scheduler scheduler = StdSchedulerFactory.getDefaultScheduler();
			scheduler.start();
			
			JobDetail jobDetail = newJob(HelloJob.class).withIdentity("job1", "group1").build();
//			Trigger trigger = newTrigger().withIdentity("trigger1", "group1").startNow().withSchedule()
			
			scheduler.shutdown();
		} catch (SchedulerException e) {
			e.printStackTrace();
		}

	}

}
